package com.study.mike.model.po;

import com.study.mike.common.annotation.EncryptField;
import com.study.mike.common.enums.BookStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author KangHui
 * @Date 2022/7/8 16:48
 */
@Data
public class QueryBookPO implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 书名
     */
    private String bookName;

    /**
     * 编号
     */
    @EncryptField
    private String bookNo;

    /**
     * 价格
     */
    private BigDecimal bookPrice;

    /**
     * 作者
     */
    @EncryptField
    private String bookAuthor;

    /**
     * 状态1启用、0禁用
     */
    private BookStatusEnum status;

    public Integer getPageCurrent() {
        return pageCurrent = pageCurrent == null ? 1 : pageCurrent;
    }

    public void setPageCurrent(Integer pageCurrent) {
        this.pageCurrent = pageCurrent;
    }

    public Integer getPageSize() {
        return pageSize = pageSize == null ? 10 : pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * 当前页
     */
    private Integer pageCurrent;

    /**
     * 每页数量
     */
    private Integer pageSize;
}
